﻿using System;
using System.Linq;
using System.Text;
using Infrastructure.Models.Bases;
using SqlSugar;

namespace Domain.Entities
{
    ///<summary>
    ///角色表
    ///</summary>
    [SugarTable("Role", TableDescription = "角色表")]
    public class Role : BaseEntity
    {
      
        //[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "编号 主键 必填 自增长")]
        //public long Id { get; set; }

       
        [SugarColumn(IsNullable = false, ColumnDescription = "角色名")]
        public string RoleName { get; set; }           
     
        [SugarColumn(IsNullable = false, DefaultValue = "1", ColumnDescription = "状态 1 可用，-1 禁用")]
        public int Status { get; set; }

    }
}
